﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class MasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            string _url = Request.Url.ToString().ToLower();

            if (_url.EndsWith("sis.ui/default.aspx"))
            {
                hplHome.CssClass = "active";
            }
            else if (_url.Contains("school"))
            {
                hplSchool.CssClass = "active";
            }
            else if (_url.Contains("student/default.aspx"))
            {
                hplAdmission.CssClass = "active";
            }
            else if (_url.Contains("student"))
            {
                hplStudent.CssClass = "active";
            }
            else if (_url.Contains("teacher"))
            {
                hplTeacher.CssClass = "active";
            }
        }
    }
}
